package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgLogistics;
import com.ygqh.baby.po.YgLogisticsExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface YgLogisticsMapper {
	int countByExample(YgLogisticsExample example);

	int deleteByExample(YgLogisticsExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgLogistics record);

	int insertSelective(YgLogistics record);

	List<YgLogistics> selectByExample(YgLogisticsExample example);

	YgLogistics selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgLogistics record, @Param("example") YgLogisticsExample example);

	int updateByExample(@Param("record") YgLogistics record, @Param("example") YgLogisticsExample example);

	int updateByPrimaryKeySelective(YgLogistics record);

	int updateByPrimaryKey(YgLogistics record);

	int countSuper(@Param("q") String q);

	List<YgLogistics> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	int addLogisticsBatch(@Param("logisticsList") List<YgLogistics> logisticsList);

	List<YgLogistics> selectLogistics(@Param("userId") Long userId, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
	List<YgLogistics> selectLogisticsBySupplierId(@Param("orderId") Long orderId, @Param("supplierId") Long supplierId);

}
